/**
* @project admin-go-api
* @name upload
* @descriptions 文件上传
* @author 寒锋
* @date 2023-12-21 14:27:49
 */

package controller

import (
	"admin-go-api/api/service"
	"github.com/gin-gonic/gin"
)

// Upload 单图片上传
// @Summary 单图片上传接口
// @Description 单图片上传接口
// @Produce json
// @Accept multipart/form-data
// @Param file formData file true "file"
// @Success 200 {object} response.Result
// @Router /api/ajax/upload [post]
func Upload(c *gin.Context) {
	service.UploadService().Upload(c)
}
